home *** CD-ROM | disk | FTP | other *** search
/ Hyper Stacks 1994 May / Hyper Stacks (Pacific HiTech)(1994)[Mac].iso / Science / Biology / WayeCas Folder / cassette-stack 1 / background_2743.txt < prev    next >
Encoding:
Text File  |  1989-05-17  |  8.3 KB  |  381 lines

  1. -- background: 2743 from stack: in
  2. -- bmap block id: 3271
  3. -- flags: 0000
  4. -- background id: 0
  5. -- name: cards
  6. ----- HyperTalk script -----
  7. on openStack
  8.   hide message box
  9.   show menuBar
  10.   pass openStack
  11. end openStack
  12.  
  13.  
  14.  
  15. -- part 8 (button)
  16. -- low flags: 00
  17. -- high flags: 0000
  18. -- rect: left=209 top=297 right=320 bottom=234
  19. -- title width / last selected line: 0
  20. -- icon id / first selected line: 1013 / 1013
  21. -- text alignment: 1
  22. -- font id: 0
  23. -- text size: 12
  24. -- style flags: 0
  25. -- line height: 16
  26. -- part name: Next
  27. ----- HyperTalk script -----
  28. on mouseUp
  29.   go to NEXT CARD
  30. end mouseUp
  31.  
  32.  
  33.  
  34. -- part 9 (button)
  35. -- low flags: 00
  36. -- high flags: 0000
  37. -- rect: left=178 top=297 right=320 bottom=204
  38. -- title width / last selected line: 0
  39. -- icon id / first selected line: 1014 / 1014
  40. -- text alignment: 1
  41. -- font id: 0
  42. -- text size: 12
  43. -- style flags: 0
  44. -- line height: 16
  45. -- part name: Prev
  46. ----- HyperTalk script -----
  47. on mouseUp
  48.   go to prev card
  49. end mouseUp
  50.  
  51.  
  52.  
  53. -- part 16 (field)
  54. -- low flags: 00
  55. -- high flags: 0000
  56. -- rect: left=148 top=132 right=149 bottom=404
  57. -- title width / last selected line: 0
  58. -- icon id / first selected line: 0 / 0
  59. -- text alignment: 0
  60. -- font id: 21
  61. -- text size: 14
  62. -- style flags: 256
  63. -- line height: 18
  64. -- part name: date sequenced
  65.  
  66.  
  67. -- part 24 (field)
  68. -- low flags: 00
  69. -- high flags: 0000
  70. -- rect: left=103 top=59 right=76 bottom=410
  71. -- title width / last selected line: 0
  72. -- icon id / first selected line: 0 / 0
  73. -- text alignment: 0
  74. -- font id: 21
  75. -- text size: 14
  76. -- style flags: 256
  77. -- line height: 18
  78. -- part name: number
  79.  
  80.  
  81. -- part 25 (field)
  82. -- low flags: 00
  83. -- high flags: 0000
  84. -- rect: left=128 top=92 right=113 bottom=409
  85. -- title width / last selected line: 0
  86. -- icon id / first selected line: 0 / 0
  87. -- text alignment: 0
  88. -- font id: 21
  89. -- text size: 14
  90. -- style flags: 256
  91. -- line height: 18
  92. -- part name: colony pure
  93.  
  94.  
  95. -- part 26 (field)
  96. -- low flags: 00
  97. -- high flags: 0000
  98. -- rect: left=128 top=285 right=303 bottom=413
  99. -- title width / last selected line: 0
  100. -- icon id / first selected line: 0 / 0
  101. -- text alignment: 0
  102. -- font id: 21
  103. -- text size: 14
  104. -- style flags: 256
  105. -- line height: 18
  106. -- part name: confirmed
  107.  
  108.  
  109. -- part 27 (field)
  110. -- low flags: 00
  111. -- high flags: 0000
  112. -- rect: left=129 top=147 right=168 bottom=383
  113. -- title width / last selected line: 0
  114. -- icon id / first selected line: 0 / 0
  115. -- text alignment: 0
  116. -- font id: 21
  117. -- text size: 14
  118. -- style flags: 256
  119. -- line height: 18
  120. -- part name: compressed
  121.  
  122.  
  123. -- part 28 (field)
  124. -- low flags: 00
  125. -- high flags: 0000
  126. -- rect: left=105 top=162 right=183 bottom=419
  127. -- title width / last selected line: 0
  128. -- icon id / first selected line: 0 / 0
  129. -- text alignment: 0
  130. -- font id: 21
  131. -- text size: 14
  132. -- style flags: 256
  133. -- line height: 18
  134. -- part name: oligo #
  135.  
  136.  
  137. -- part 29 (field)
  138. -- low flags: 00
  139. -- high flags: 0000
  140. -- rect: left=154 top=113 right=133 bottom=406
  141. -- title width / last selected line: 0
  142. -- icon id / first selected line: 0 / 0
  143. -- text alignment: 0
  144. -- font id: 21
  145. -- text size: 14
  146. -- style flags: 256
  147. -- line height: 18
  148. -- part name: other comments
  149.  
  150.  
  151. -- part 30 (field)
  152. -- low flags: 00
  153. -- high flags: 0000
  154. -- rect: left=170 top=204 right=223 bottom=360
  155. -- title width / last selected line: 0
  156. -- icon id / first selected line: 0 / 0
  157. -- text alignment: 0
  158. -- font id: 21
  159. -- text size: 14
  160. -- style flags: 256
  161. -- line height: 18
  162. -- part name: date DNA prepared
  163.  
  164.  
  165. -- part 31 (field)
  166. -- low flags: 00
  167. -- high flags: 0000
  168. -- rect: left=138 top=236 right=255 bottom=328
  169. -- title width / last selected line: 0
  170. -- icon id / first selected line: 0 / 0
  171. -- text alignment: 0
  172. -- font id: 21
  173. -- text size: 14
  174. -- style flags: 256
  175. -- line height: 18
  176. -- part name: location DNA
  177.  
  178.  
  179. -- part 32 (field)
  180. -- low flags: 00
  181. -- high flags: 0000
  182. -- rect: left=149 top=266 right=285 bottom=339
  183. -- title width / last selected line: 0
  184. -- icon id / first selected line: 0 / 0
  185. -- text alignment: 0
  186. -- font id: 21
  187. -- text size: 14
  188. -- style flags: 256
  189. -- line height: 18
  190. -- part name: location phage
  191.  
  192.  
  193. -- part 34 (field)
  194. -- low flags: 00
  195. -- high flags: 0000
  196. -- rect: left=108 top=185 right=203 bottom=418
  197. -- title width / last selected line: 0
  198. -- icon id / first selected line: 0 / 0
  199. -- text alignment: 0
  200. -- font id: 21
  201. -- text size: 14
  202. -- style flags: 256
  203. -- line height: 18
  204. -- part name: rest enz
  205.  
  206.  
  207. -- part 37 (field)
  208. -- low flags: 00
  209. -- high flags: 0000
  210. -- rect: left=109 top=40 right=61 bottom=408
  211. -- title width / last selected line: 0
  212. -- icon id / first selected line: 0 / 0
  213. -- text alignment: 0
  214. -- font id: 21
  215. -- text size: 14
  216. -- style flags: 256
  217. -- line height: 18
  218. -- part name: sequence
  219.  
  220.  
  221. -- part 38 (field)
  222. -- low flags: 00
  223. -- high flags: 0000
  224. -- rect: left=102 top=76 right=93 bottom=409
  225. -- title width / last selected line: 0
  226. -- icon id / first selected line: 0 / 0
  227. -- text alignment: 0
  228. -- font id: 21
  229. -- text size: 14
  230. -- style flags: 256
  231. -- line height: 18
  232. -- part name: good
  233.  
  234.  
  235. -- part 43 (button)
  236. -- low flags: 00
  237. -- high flags: 8000
  238. -- rect: left=391 top=174 right=224 bottom=483
  239. -- title width / last selected line: 0
  240. -- icon id / first selected line: 14953 / 14953
  241. -- text alignment: 1
  242. -- font id: 0
  243. -- text size: 12
  244. -- style flags: 0
  245. -- line height: 16
  246. -- part name: export
  247. ----- HyperTalk script -----
  248. on mouseUp
  249.   global it
  250.   get name of card
  251.   put it into card
  252.   PUT "EXPORTED"INTO FIELD 14
  253.   put item 1 of field "number" into num
  254.   put item 1 of field "sequence" into seq
  255.   go to card 1 of stack "cassette-stack 2"
  256.   -- %%  put your own card number in place of 1  %%
  257.   --change card 1 into your card number
  258.   --change stack "cassette-stack 2" into your stack name
  259.   put num into field 2
  260.   put seq into field 1
  261.   put card into field 3
  262. end mouseUp
  263.  
  264.  
  265.  
  266. -- part 44 (field)
  267. -- low flags: 00
  268. -- high flags: 0000
  269. -- rect: left=385 top=244 right=260 bottom=480
  270. -- title width / last selected line: 0
  271. -- icon id / first selected line: 0 / 0
  272. -- text alignment: 0
  273. -- font id: 3
  274. -- text size: 12
  275. -- style flags: 0
  276. -- line height: 16
  277. -- part name: export
  278.  
  279.  
  280. -- part 46 (button)
  281. -- low flags: 00
  282. -- high flags: 8000
  283. -- rect: left=386 top=43 right=89 bottom=476
  284. -- title width / last selected line: 0
  285. -- icon id / first selected line: 2507 / 2507
  286. -- text alignment: 1
  287. -- font id: 0
  288. -- text size: 12
  289. -- style flags: 0
  290. -- line height: 16
  291. -- part name: HELP
  292. ----- HyperTalk script -----
  293. on mouseUp
  294.   get name of card
  295.   put it into card
  296.  
  297.   go to stack "cassette-stack 2"
  298.   put item 1 of card into field 2 of card "help"
  299.   go to card "help"
  300. end mouseUp
  301.  
  302.  
  303.  
  304. -- part 48 (button)
  305. -- low flags: 00
  306. -- high flags: 8000
  307. -- rect: left=387 top=105 right=154 bottom=479
  308. -- title width / last selected line: 0
  309. -- icon id / first selected line: 15972 / 15972
  310. -- text alignment: 1
  311. -- font id: 0
  312. -- text size: 12
  313. -- style flags: 0
  314. -- line height: 16
  315. -- part name: STATISTICS
  316. ----- HyperTalk script -----
  317. on mouseUp
  318.   put empty into message box
  319.   put 0 into T
  320.   put 0 into c
  321.   put 0 into g
  322.   put 0 into a
  323.   ask "No.of cards to be sorted-this+previous cards:"
  324.   put it into y
  325.   ask "No. of positions to be analysed:-"
  326.   put it into b
  327.   if y is "cancel" then
  328.     exit mouseup
  329.   end if
  330.   if y>0 then
  331.     repeat with y=1 to y
  332.       put field "number" into num
  333.       put 1 into x
  334.       repeat b times
  335.         get charToNum of character x of field "sequence"
  336.         if it=84 then add 1 to T
  337.         if it=67 then add 1 to c
  338.         if it=71 then add 1 to g
  339.         if it=65 then add 1 to a
  340.         add 1 to x
  341.       end repeat
  342.       go to previous card
  343.     end repeat
  344.     put " Number of cards = y" into item 1 of message
  345.     put y into last word of item 1 of message
  346.     put " T = tt" into item 2 of message
  347.     put t into last word of item 2 of message
  348.     put " C = cc" into item 3 of message
  349.     put c into last word of item 3 of message
  350.     put " G = gg" into item 4 of message
  351.     put g into last word of item 4 of message
  352.     put " A = aa" into item 5 of message
  353.     put a into last word of item 5 of message
  354.  
  355.   end if
  356. end mouseUp
  357.  
  358.  
  359.  
  360. -- part 49 (button)
  361. -- low flags: 00
  362. -- high flags: 8000
  363. -- rect: left=391 top=266 right=317 bottom=482
  364. -- title width / last selected line: 0
  365. -- icon id / first selected line: 20186 / 20186
  366. -- text alignment: 1
  367. -- font id: 0
  368. -- text size: 12
  369. -- style flags: 0
  370. -- line height: 16
  371. -- part name: Sort
  372. ----- HyperTalk script -----
  373. on mouseUp
  374.   answer "Sort all cards of this stack according to:" with "sequence" or "number" or "Cancel"
  375.   if it is "sequence"
  376.   then sort by first item of field "sequence"
  377. else if it is "number"
  378. then sort by first item of field "number"
  379. end mouseUp
  380.  
  381.